<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>教师信息管理系统</title>
    <link rel="stylesheet" href="/css/layui.css">
    <script src="/js/jquery-3.7.1.min.js"></script>
    <link rel="stylesheet" href="/css/dp01.css">

</head>
<body>

<div class="container">
    <div class="layui-row">
        <div class="layui-col-xs12">
            <h1 style="text-align: center">教师信息管理系统</h1>
        </div>
    </div>

    <div class="search-area">
        <form id="searchForm" class="layui-form">
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">教师姓名</label>
                    <div class="layui-input-inline">
                        <input type="text" name="name" placeholder="请输入姓名" class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">教职工号</label>
                    <div class="layui-input-inline">
                        <input type="text" name="tno" placeholder="请输入教职工号" class="layui-input">
                    </div>
                </div>

                <div class="layui-inline">
                    <button type="button" id="searchBtn" class="layui-btn layui-btn-normal">查询</button>
                </div>
            </div>
        </form>
    </div>

    <div class="layui-row">
        <div class="layui-col-xs12 toolbar">
            <button type="button" class="layui-btn layui-btn-sm layui-btn-normal"
                    onclick="showStudentDlg();return false;">
                <i class="layui-icon layui-icon-addition"></i> 新增教师
            </button>
        </div>
    </div>

    <div class="layui-row">
        <div class="layui-col-xs12">
            <table class="layui-table" lay-even>
                <thead>
                <tr>
                    <th>ID</th>
                    <th>姓名</th>
                    <th>性别</th>
                    <th>年龄</th>
                    <th>教职工号</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody id="studentTb"></tbody>
            </table>
        </div>
    </div>
</div>

<!-- 学生表单弹窗 -->
<form class="layui-form dlgcontainer" id="studForm" style="display: none;">
    <div class="demo-reg-container">
        <div class="layui-form-item" id="formId">
            <div class="layui-row">
                <div class="layui-col-xs12">
                    <div class="layui-input-wrap">
                        <div class="layui-input-prefix">
                            <i class="layui-icon layui-icon-form"></i>
                        </div>
                        <input type="text" name="id" value="" placeholder="ID" autocomplete="off"
                               class="layui-input" id="id" readonly>
                    </div>
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-wrap">
                <div class="layui-input-prefix">
                    <i class="layui-icon layui-icon-vercode"></i>
                </div>
                <input type="text" name="tno" value="" lay-verify="required" placeholder="学号"
                       lay-reqtext="请填写教职工号号" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-wrap">
                <div class="layui-input-prefix">
                    <i class="layui-icon layui-icon-username"></i>
                </div>
                <input type="text" name="name" value="" lay-verify="required" placeholder="姓名"
                       autocomplete="off" class="layui-input" id="name">
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-wrap">
                <label class="layui-form-label">性别</label>
                <div class="layui-input-block">
                    <input type="radio" name="sex" value="1" title="男" checked>
                    <input type="radio" name="sex" value="2" title="女">
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-wrap">
                <div class="layui-input-prefix">
                    <i class="layui-icon layui-icon-user"></i>
                </div>
                <input type="number" name="age" value="" placeholder="年龄"
                       autocomplete="off" class="layui-input" lay-affix="clear">
            </div>
        </div>
        <div class="layui-form-item">
            <button class="layui-btn layui-btn-fluid" lay-submit lay-filter="stud-dlg" id="btnOK">确定</button>
        </div>
    </div>
</form>

<script src="/js/layui.js"></script>
<script src="/pagejs/dp01.js"></script>
</body>
</html>